package references

import (
	"jvmgo/instructions/base"
	"jvmgo/rtda"
)

type MONITORENTER struct {
	base.NoOperandsInstruction
}

func (self *MONITORENTER) Execute(frame *rtda.Frame) {
	ref := frame.OperandStack().PopRef()
	if ref == nil {
		panic("java.lang.NullPointerException")
	}
}

type MONITOREXIT struct {
	base.NoOperandsInstruction
}

func (self *MONITOREXIT) Execute(frame *rtda.Frame) {
	ref := frame.OperandStack().PopRef()
	if ref == nil {
		panic("java.lang.NullPointerException")
	}
}
